package com.ruoyi.wp.service.impl;

import com.ruoyi.wp.domain.IDoctorRegisterFee;
import com.ruoyi.wp.mapper.IDoctorRegisterFeeMapper;
import com.ruoyi.wp.service.IDoctorRegisterFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class IDoctorRegisterFeeServiceImpl implements IDoctorRegisterFeeService {

    @Autowired
    private IDoctorRegisterFeeMapper feeMapper;
    @Override
    public List<IDoctorRegisterFee> findAll() {
        return feeMapper.selectAll();
    }

    @Override
    public Long selectById(Long registraId) {
        IDoctorRegisterFee iDoctorRegisterFee = feeMapper.selectById(registraId);
        return iDoctorRegisterFee.getRegistraUnitprice();
    }
}
